import { request } from '@/utils/request/uni';
export interface IFooItem {
  id: string;
  name: string;
}

/** GET 请求 */
export const getFooAPI = (name: string) => {
  return request.get<IFooItem>({ url: '/foo', params: { name } });
};

/** POST 请求 */
export const postFooAPI = (name: string) => {
  return request.post<IFooItem>({ url: '/foo', params: { name } });
};
